use crate::common::AppState;
use crate::handler::api::handler::{register, sign, signup};
use axum::routing::post;
use axum::Router;
use std::sync::Arc;

pub fn get_router(app_state: Arc<AppState>) -> Router<Arc<AppState>> {
    Router::new()
        .route("/register", post(register))
        .route("/sign", post(sign))
        .route("/signup", post(signup))
        .with_state(app_state)
}
